import 'package:flutter/material.dart';
import 'package:huajianshe_app/common/res.dart';
import 'package:flutter/services.dart';

class DemoAppBar extends AppBar {
  DemoAppBar(String title, {List<Widget> rightWidgets}) : super(
      title: Title(color: Colors.white, child: Text(title)),
      actions: rightWidgets,
      backgroundColor: C.primary,
      systemOverlayStyle: SystemUiOverlayStyle.light,
      brightness: Brightness.light
  );
}

// class DemoAppBar {
//   DemoAppBar(String s);

//   static AppBar normal(
//     String text, {
//     List<Widget> actions,
//   }) {
//     return AppBar(
//       title: Title(
//         color: Colors.white,
//         child: Text(
//           text,
//         ),
//       ),
//       actions: actions,
//       centerTitle: true,
//     );
//   }
// }
